package com.yc.study.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class AnswerVo {

  @ApiModelProperty("主键")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  @ApiModelProperty("问题标题")
  @TableField("title")
  private String title;

  @ApiModelProperty("学生id")
  @TableField("student_id")
  private Long studentId;

  @ApiModelProperty("学生名字")
  private String studentName;

  @ApiModelProperty("老师名字")
  private String teacherName;

  @ApiModelProperty("问题内容")
  @TableField("content")
  private String content;

  @ApiModelProperty("创建时间")
  @TableField(value = "create_time", fill = FieldFill.INSERT)
  private Date createTime;

  @ApiModelProperty("更新时间")
  @TableField(fill = FieldFill.INSERT_UPDATE)
  private Date updateTime;

  @ApiModelProperty("老师id")
  @TableField("teacher_id")
  private Long teacherId;
}
